# -*- coding: utf-8 -*-
from south.utils import datetime_utils as datetime
from south.db import db
from south.v2 import SchemaMigration
from django.db import models


class Migration(SchemaMigration):

    def forwards(self, orm):
        # Adding model 'Cache'
        db.create_table(u'sdk_cache', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('keyword', self.gf('django.db.models.fields.CharField')(max_length=100)),
            ('content', self.gf('django.db.models.fields.TextField')()),
        ))
        db.send_create_signal(u'sdk', ['Cache'])

        # Adding model 'PreparedProduct'
        db.create_table(u'sdk_preparedproduct', (
            (u'id', self.gf('django.db.models.fields.AutoField')(primary_key=True)),
            ('spname', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('sppic', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('sid', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('spurl', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('bid', self.gf('django.db.models.fields.CharField')(max_length=255)),
            ('spprice', self.gf('django.db.models.fields.DecimalField')(max_digits=9, decimal_places=2)),
        ))
        db.send_create_signal(u'sdk', ['PreparedProduct'])


    def backwards(self, orm):
        # Deleting model 'Cache'
        db.delete_table(u'sdk_cache')

        # Deleting model 'PreparedProduct'
        db.delete_table(u'sdk_preparedproduct')


    models = {
        u'sdk.cache': {
            'Meta': {'object_name': 'Cache'},
            'content': ('django.db.models.fields.TextField', [], {}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'keyword': ('django.db.models.fields.CharField', [], {'max_length': '100'})
        },
        u'sdk.preparedproduct': {
            'Meta': {'object_name': 'PreparedProduct'},
            'bid': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            u'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
            'sid': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'spname': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'sppic': ('django.db.models.fields.CharField', [], {'max_length': '255'}),
            'spprice': ('django.db.models.fields.DecimalField', [], {'max_digits': '9', 'decimal_places': '2'}),
            'spurl': ('django.db.models.fields.CharField', [], {'max_length': '255'})
        }
    }

    complete_apps = ['sdk']